import http from "../http";
import config from "../config";
import Utils from "../utils";

class IndexService {
  async login(params?: any): Promise<any> {
    return await http.post(config.ApiList.login, params);
  }

  async getUserFriends(params?: any): Promise<any> {
    return await http.post(config.ApiList.getUserFriends, params, {
      authorization: "Bearer " + Utils.getToken(),
    });
  }
}

export default new IndexService();
